#include "MatrixVectorRead.h"
#include <stdio.h>

void _printMatrixRowColSize() {
	int tempRow = getMatrixRowSize();
	int tempCol = getMatrixColumnSize();
	printf("%d\t%d\n", tempRow, tempCol);
}

void _printVectorRowColSize() {
	int tempRow = getVectorRowSize();
	int tempCol = getVectorColumnSize();
	printf("%d\t%d\n", tempRow, tempCol);
}

void _printMatrixForTesting() {
	int k = 0;

	int tempMatSize = getMatrixSize();
	MatrixCell* tempMat = getMatrix();

  printf("matrix:\n");
	for(k = 0; k < tempMatSize; ++k)
		printf("\t%d\t%d\t%lf\n", tempMat[k].row, tempMat[k].col, tempMat[k].value);
}

void _printVectorForTesting() {
	int k = 0;

	int tempVectSize = getVectorSize();
	MatrixCell* tempVect = getVector();

  printf("vector:\n");
	for(k = 0; k < tempVectSize; ++k)
		printf("\t%d\t%d\t%lf\n", tempVect[k].row, tempVect[k].col, tempVect[k].value);
}

void _printOutputForTesting(int my_rank) {
  printf("my rank: %d\n", my_rank);
	_printMatrixForTesting();
  _printVectorForTesting();
}
